package com.lmr.time;

import com.lmr.service.WebSocketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by ldd on 2020/1/2.
 */
@Component
public class SchedulingWebService {


    @Autowired
    private WebSocketService webSocketService;


    @Scheduled(fixedRate = 2000)
    public void onPushWebSystemInfo(){
        webSocketService.onPushSystemInfo();
    }
}
